package org.example.hello4_routingKey_direct;

import org.springframework.amqp.core.DirectExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RoutingDirectConfig {

    /**
     * 声明交换机,也可以不声明
     */
//    @Bean
//    public DirectExchange directExange() {
//        DirectExchange directExchange = new DirectExchange("directs_exchange");
//        return directExchange;
//    }
}

